package com.xcity.game.worldevent;

import naga.x.game.template.Template;
import naga.x.game.template.TemplateException;
import naga.x.game.template.annotation.Excel;

/**
 * 世界事件
 * @author yang.li
 *
 */
@Excel(value = "world_event.xlsx", sheet = 0)
public class WorldEventTemplate extends Template {

	/** 行业(参考build.xlsx) */
	protected byte industry;

	/** 类型(0:减益;1:增益) */
	protected byte type;

	/** 活动类型(0:持续) */
	protected byte effectType;

	/** 效果(百分比) */
	protected int effect;

	/** 持续时间(秒) */
	protected int duration;
	
	/** 图标 */
	protected String icon;

	/** 内容描述 */
	protected String desc;

//	/** 抵消事件物品id */
//	protected int cancelItemId;
//
//	/** 抵消事件物品数量 */
//	protected int cancelItemCount;
	
	public static final byte BAD = 0, GOOD = 1;

	public byte getIndustry() {
		return industry;
	}

	public void setIndustry(byte industry) {
		this.industry = industry;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public byte getEffectType() {
		return effectType;
	}

	public void setEffectType(byte effectType) {
		this.effectType = effectType;
	}

	public int getEffect() {
		return effect;
	}

	public void setEffect(int effect) {
		this.effect = effect;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

//	public int getCancelItemId() {
//		return cancelItemId;
//	}
//
//	public void setCancelItemId(int cancelItemId) {
//		this.cancelItemId = cancelItemId;
//	}
//
//	public int getCancelItemCount() {
//		return cancelItemCount;
//	}
//
//	public void setCancelItemCount(int cancelItemCount) {
//		this.cancelItemCount = cancelItemCount;
//	}


	@Override
	public void validate() throws TemplateException {}
}
